{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import pickle\n",
    "catLookup = {'human_bike': 'human',\n",
    "             'human_ohv': 'car',\n",
    "             'spotted_skunk': 'skunk',\n",
    "             'gray_squirrel': 'squirrel',\n",
    "             'DIVI_opossum': 'opossum',\n",
    "             'ROSP_ratlike': 'rodent',\n",
    "             'mouse_or_rat': 'rodent',\n",
    "             'rat': 'rodent',\n",
    "             #'rodent': 'rodent',\n",
    "             'mouse': 'rodent',\n",
    "             'Rat': 'rodent',\n",
    "             'SUSC_pig': 'pig',\n",
    "             'grayfox': 'fox',\n",
    "             'california_towhee': 'bird',\n",
    "             'northern_flicker': 'bird',\n",
    "             'scrub_jay': 'bird',\n",
    "             'mule_deer': 'deer',\n",
    "             'thrasher': 'bird',\n",
    "             'whiptail': 'lizard',\n",
    "             'fence_lizard': 'lizard',\n",
    "             'wren': 'bird',\n",
    "             'woodrat': 'rodent',\n",
    "             'WoodRat': 'rodent',\n",
    "             'raven': 'bird',\n",
    "             'crow': 'bird',\n",
    "             'hawk': 'bird',\n",
    "             'road runner': 'bird',\n",
    "             'burrowing_owl': 'bird',\n",
    "             'kangaroo_rat': 'rodent',\n",
    "             'quail': 'bird',\n",
    "             'mourning_dove': 'bird',\n",
    "             'spotted_towhee': 'bird',\n",
    "             'sparrow': 'bird',\n",
    "             'hummingbird': 'bird',\n",
    "             'white_crowned_sparrow': 'bird',\n",
    "             'california_thrasher': 'bird',\n",
    "             'black-hooded_parakeet': 'bird',\n",
    "             'western_meadowlark': 'bird',\n",
    "             'bluejay': 'bird',\n",
    "             'jay': 'bird',\n",
    "             'rock_sparrow': 'bird',\n",
    "             'fox_sparrow': 'bird',\n",
    "             'california_mouse': 'rodent',\n",
    "             'oak_titmouse': 'bird',\n",
    "             'dove': 'bird',\n",
    "             'owl': 'bird',\n",
    "             'northern_mockingbird': 'bird',\n",
    "             'coyote_pup': 'coyote',\n",
    "             'sage_thrasher': 'bird',\n",
    "             'common_poorwill': 'bird',\n",
    "             'acorn_woodpecker': 'bird',\n",
    "             'flicker': 'bird',\n",
    "             'rock_wren': 'bird',\n",
    "             'california_quail': 'bird',\n",
    "             'american_goldfinch': 'bird',\n",
    "             'thrush': 'bird',\n",
    "             'finch': 'bird',\n",
    "             'field_mouse': 'rodent',\n",
    "             'house_finch': 'bird',\n",
    "             'red_fox': 'fox',\n",
    "             'meadowlark': 'bird',\n",
    "             'chicken': 'bird',\n",
    "             'black-headed_grossbeak': 'bird',\n",
    "             'great_egret': 'bird',\n",
    "             'barn_owl': 'bird',\n",
    "             'kit_fox': 'fox',\n",
    "#              'burro': 'burro'\n",
    "             'kangaroo_rat': 'rodent',\n",
    "             'antelope_squirrel': 'squirrel',\n",
    "             'northern_harrier': 'bird',\n",
    "             'red-tailed_hawk': 'bird',\n",
    "             'cowbird': 'bird',\n",
    "             'great_blue_heron': 'bird',\n",
    "             'golden_eagle': 'bird',\n",
    "             'chukar': 'bird',\n",
    "             'cliff_chipmunk': 'chipmunk',\n",
    "             'clarks_nutcracker': 'bird',\n",
    "             'woodpecker': 'bird',\n",
    "             'horned_owl': 'bird',\n",
    "             'belted_kingfisher': 'bird',\n",
    "             'robin': 'bird',\n",
    "             'coot': 'bird',\n",
    "             'pinyon_jay': 'bird',\n",
    "             'coopers_hawk': 'bird',\n",
    "             'turkey_vulture': 'bird',\n",
    "             'cottontail': 'rabbit',\n",
    "             'desert_cottontail': 'rabbit',\n",
    "             'trip': 'empty',\n",
    "             'junk': 'empty',\n",
    "             'unknown': 'empty',\n",
    "             'blur': 'empty',\n",
    "             'fox_squirrel':'squirrel',\n",
    "             'hermit_thrush':'bird',\n",
    "             'striped_skunk': 'skunk',\n",
    "             'jackrabbit':'rabbit',\n",
    "             'dark-eyed_junco': 'bird',\n",
    "             'black_phoebe': 'bird',\n",
    "             'white-crowned_sparrow': 'bird',\n",
    "             'brush_rabbit': 'rabbit',\n",
    "             'western_scrub_jay': 'bird',\n",
    "             'ground_dove': 'bird',\n",
    "             'yellow-rumped_warbler': 'bird',\n",
    "             'american_robin': 'bird',\n",
    "             'deer_mouse': 'rodent',\n",
    "             'gnatcatcher': 'bird',\n",
    "#              'black_bear': 'bear',\n",
    "             'butterfly': 'insect',\n",
    "             'moth': 'insect',\n",
    "             'small mammal': 'rodent',\n",
    "             'unknown_animal': 'empty'\n",
    "             }\n",
    "pickle.dump(catLookup, open('big_category_lookup.p','wb'))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
